package com.wcarmon.life.command{

    import com.adobe.cairngorm.commands.ICommand
    import com.adobe.cairngorm.control.CairngormEvent;
	import mx.controls.Alert;
	import com.wcarmon.life.model.LifeModelLocator;
	import com.wcarmon.life.event.*;
	import com.wcarmon.life.business.*;
	import mx.utils.*;
	import mx.managers.*;
	import com.wcarmon.life.view.*;
	import mx.core.*;
	import flash.display.*;
	
	
	
	public class ShowMiniCollectCommand implements ICommand {
		include "../../includes/loggerSnippet.as";
		
		public function execute( event : CairngormEvent ) : void {
			var e:ShowMiniCollectEvent = ShowMiniCollectEvent(event);
			
			var model : LifeModelLocator = LifeModelLocator.getInstance();
			model.miniCollectPop = PopUpManager.createPopUp(Application.application as DisplayObject, 
											MiniCollect, true) as MiniCollect;			
			PopUpManager.centerPopUp( model.miniCollectPop );
			model.miniCollectPop.initialProjectId = e.initialProjectId;
		}
	}
}